package Data::Domain::URI;

use strict;
use warnings;
use Data::Domain::SemanticAdapter;


our $VERSION = '0.01';


use base 'Exporter';


our %map = (
    URI_Fax  => 'URI::fax',
    URI_File => 'URI::file',
    URI_FTP  => 'URI::ftp',
    URI_HTTP => 'URI::http',
);


our %EXPORT_TAGS = (
    util => [ keys %map ],
);


our @EXPORT_OK = @{ $EXPORT_TAGS{all} = [ map { @$_ } values %EXPORT_TAGS ] };


Data::Domain::SemanticAdapter::install_shortcuts(%map);


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - Data domain classes for URIs

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

The classes in this distribution are data domain classes for various URI
types.

=over 4

=item fax

See L<Data::Domain::URI::fax>.

=item file

See L<Data::Domain::URI::file>.

=item ftp

See L<Data::Domain::URI::ftp>.

=item http

See L<Data::Domain::URI::http>.

=back

Besides defining the methods described below, this class also exports, on
request, these functions:

=over 4

=item URI_Fax

A shortcut for creating a L<Data::Domain::URI::fax> object. Arguments are
passed on to the object's constructor.

=item URI_File

A shortcut for creating a L<Data::Domain::URI::file> object. Arguments are
passed on to the object's constructor.

=item URI_FTP

A shortcut for creating a L<Data::Domain::URI::ftp> object. Arguments are
passed on to the object's constructor.

=item URI_HTTP

A shortcut for creating a L<Data::Domain::URI::http> object. Arguments are
passed on to the object's constructor.

=back

By using the C<:all> tag, you can import all of them.

{% p.write_inheritance %}

=head1 METHODS

=over 4

{% p.write_methods %}

=back

=head1 TODO

Add the other URI classes supported by L<Regexp::Common::URI> as soon as they
are available via L<Data::Semantic::URI>.

{% PROCESS standard_pod %}

=cut

